home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Area.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  4.9 KB  |  106 lines

  1. //
  2. //  $VER: Area.h        1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  27 Jul 1996 :   1.1 : Neu:
  22. //                        - Die Drag&Drop-Methoden sind hinzugefügt worden.
  23. //
  24. //  02 Sep 1996 :   1.2 : Neu:
  25. //                        - Die Methoden DrawBackground und HandleEvent sind für
  26. //                          MUI 3.6 hinzugefügt worden.
  27. //                        - ClassNum() für Exception-Handling.
  28. //                        Änderungen:
  29. //                        - Die Methode ObjectID() wurde wegen MUI 3.6 nach
  30. //                          MUINotify verschoben.
  31. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  32. //
  33.  
  34. #ifndef CPP_TWIMUI_AREA_H
  35. #define CPP_TWIMUI_AREA_H
  36.  
  37. #ifndef CPP_TWIMUI_NOTIFY_H
  38. #include <classes/twimui/notify.h>
  39. #endif
  40.  
  41. #ifndef CPP_TWIMUI_WINDOW_H
  42. #include <classes/twimui/window.h>
  43. #endif
  44.  
  45. class MUIArea : public MUINotify
  46.     {
  47.     protected:
  48.         virtual const ULONG ClassNum() const;
  49.         MUIArea(const STRPTR cl) : MUINotify(cl) { };
  50.     public:
  51.         MUIArea(const struct TagItem *t) : MUINotify(MUIC_Area) { init(t); };
  52.         MUIArea(const Tag, ...);
  53.         MUIArea() : MUINotify(MUIC_Area) { };
  54.         MUIArea(const MUIArea &);
  55.         virtual ~MUIArea();
  56.         MUIArea &operator= (const MUIArea &p);
  57.         void Background(const LONG p) { set(MUIA_Background,(ULONG)p); };
  58.         LONG BottomEdge() const { return((LONG)get(MUIA_BottomEdge,0L)); };
  59.         void ContextMenu(const Object *p) { set(MUIA_ContextMenu,(ULONG)p); };
  60.         Object *ContextMenu() const { return((Object *)get(MUIA_ContextMenu)); };
  61.         Object *ContextMenuTrigger() const { return((Object *)get(MUIA_ContextMenuTrigger)); };
  62.         void ControlChar(const UBYTE p) { set(MUIA_ControlChar,(ULONG)p); };
  63.         UBYTE ControlChar() const { return((UBYTE)get(MUIA_ControlChar)); };
  64.         void CycleChain(const LONG p) { set(MUIA_CycleChain,(ULONG)p); };
  65.         LONG CycleChain() const { return((LONG)get(MUIA_CycleChain,0L)); };
  66.         void Disabled(const BOOL p) { set(MUIA_Disabled,(ULONG)p); };
  67.         BOOL Disabled() const { return((BOOL)get(MUIA_Disabled,FALSE)); };
  68.         void Draggable(const BOOL p) { set(MUIA_Draggable,(ULONG)p); };
  69.         BOOL Draggable() const { return((BOOL)get(MUIA_Draggable,FALSE)); };
  70.         void Dropable(const BOOL p) { set(MUIA_Dropable,(ULONG)p); };
  71.         BOOL Dropable() const { return((BOOL)get(MUIA_Dropable,FALSE)); };
  72.         struct TextFont *Font() const { return((struct TextFont *)get(MUIA_Font)); };
  73.         LONG Height() const { return((LONG)get(MUIA_Height,0L)); };
  74.         void HorizDisappear(const LONG p) { set(MUIA_HorizDisappear,(ULONG)p); };
  75.         LONG HorizDisappear() const { return((LONG)get(MUIA_HorizDisappear,0L)); };
  76.         LONG LeftEdge() const { return((LONG)get(MUIA_LeftEdge,0L)); };
  77.         BOOL Pressed() const { return((BOOL)get(MUIA_Pressed,FALSE)); };
  78.         LONG RightEdge() const { return((LONG)get(MUIA_RightEdge,0L)); };
  79.         void Selected(const BOOL p) { set(MUIA_Selected,(ULONG)p); };
  80.         BOOL Selected() const { return((BOOL)get(MUIA_Selected,FALSE)); };
  81.         void ShortHelp(const STRPTR p) { set(MUIA_ShortHelp,(ULONG)p); };
  82.         STRPTR ShortHelp() const { return((STRPTR)get(MUIA_ShortHelp)); };
  83.         void ShowMe(const BOOL p) { set(MUIA_ShowMe,(ULONG)p); };
  84.         BOOL ShowMe() const { return((BOOL)get(MUIA_ShowMe,FALSE)); };
  85.         LONG Timer() const { return((LONG)get(MUIA_Timer,0L)); };
  86.         LONG TopEdge() const { return((LONG)get(MUIA_TopEdge,0L)); };
  87.         void VertDisappear(const LONG p) { set(MUIA_VertDisappear,(ULONG)p); };
  88.         LONG VertDisappear() const { return((LONG)get(MUIA_VertDisappear,0L)); };
  89.         LONG Width() const { return((LONG)get(MUIA_Width,0L)); };
  90.         struct Window *WindowP() const { return((struct Window *)get(MUIA_Window)); };
  91.         Object *WinObject() const { return((Object *)get(MUIA_WindowObject)); };
  92.         Object *ContextMenuBuild(LONG p1, LONG p2) { return((Object *)dom(MUIM_ContextMenuBuild,(ULONG)p1,(ULONG)p2)); };
  93.         void ContextMenuChoice(Object *p) { dom(MUIM_ContextMenuChoice,(ULONG)p); };
  94.         void DragBegin(Object *p) { dom(MUIM_DragBegin,(ULONG)p); };
  95.         void DragDrop(Object *p1, LONG p2, LONG p3) { dom(MUIM_DragDrop,(ULONG)p1,(ULONG)p2,(ULONG)p3); };
  96.         void DragFinish(Object *p) { dom(MUIM_DragFinish,(ULONG)p); };
  97.         void DragQuery(Object *p) { dom(MUIM_DragQuery,(ULONG)p); };
  98.         void DragReport(Object *p1, LONG p2, LONG p3, LONG p4) { dom(MUIM_DragReport,(ULONG)p1,(ULONG)p2,(ULONG)p3,(ULONG)p4); };
  99.         void Draw(ULONG p) { dom(MUIM_Draw,p); };
  100.         void Drawbackground(LONG p1, LONG p2, LONG p3, LONG p4, LONG p5, LONG p6, LONG p7) { dom(MUIM_DrawBackground,(ULONG)p1,(ULONG)p2,(ULONG)p3,(ULONG)p4,(ULONG)p5,(ULONG)p6,(ULONG)p7); };
  101.         LONGBITS HandleEvent(struct IntuiMessage *p1, LONG p2) { return((LONGBITS)dom(MUIM_HandleEvent,(ULONG)p1,(ULONG)p2)); };
  102.         MUIWindow *WinClass() const;
  103.     };
  104.  
  105. #endif
  106.